package com.example.dto;

import com.example.validator.group.AddGroup;
import com.example.validator.group.UpdateGroup;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.List;

import lombok.Data;


/**
 * 规格名称表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-29
 */
@Data
@Schema(description = "规格名称表")
public class SpecNamesDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "规格ID")
    private Long specId;
    @Schema(description = "规格名称")
    private String specName;
    @Schema(description = "规格类型：0：菜单规格，1:菜单配料规格")
    private Integer specType;

    private List<SpecValuesDTO> specValues;
    @Schema(description = "规格值字符串")
    private String specValueStrs;

}